package com.ruoyi.hr.service.impl.bginfo;


import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.mapper.bginfo.BasicEmpInfoMapper;
import com.ruoyi.hr.service.bginfo.BasicEmpInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class BasicEmpInfoServiceImpl implements BasicEmpInfoService {

    @Autowired
    BasicEmpInfoMapper basicEmpInfoMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> findDataList(Map map, Authority authority) {
        return basicEmpInfoMapper.findDataList(map, authority);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public Map<String, Object> findDataByEid(String eid) {
        return basicEmpInfoMapper.findDataByEid(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public int edit(Map map) {
        return basicEmpInfoMapper.edit(map);
    }
}
